package com.oig.auth.api;


import com.oig.auth.api.factory.UserFallbackFactory;
import com.oig.sys.auth.vo.OpenUserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(contextId = "userOpenService", value = "sys-auth-server",path = "/openUser", fallbackFactory = UserFallbackFactory.class)
public interface OpenUserService {

    /**
     * 获取第三方用户基本信息
     */
    @PostMapping(value = "/info/{userId}")
    OpenUserVo getUserById(@PathVariable("userId") Integer userId);

}
